package com.dfl.api.app.guistore;

import android.os.Parcel;
import android.os.Parcelable;

public class SkinInfo implements Parcelable {
    private long skinId;
    private String skinPath;
    private boolean isDark;
    private boolean isTrial;
    private String iconUrl;
    private String title;
    public static final Parcelable.Creator<SkinInfo> CREATOR = new Parcelable.Creator<SkinInfo>() {
        public SkinInfo createFromParcel(Parcel in) {
            return new SkinInfo(in);
        }

        public SkinInfo[] newArray(int size) {
            return new SkinInfo[size];
        }
    };

    public SkinInfo() {
    }

    public SkinInfo(long skinId, String skinPath, boolean isDark, boolean isTrial, String iconUrl, String title) {
        this.skinId = skinId;
        this.skinPath = skinPath;
        this.isDark = isDark;
        this.isTrial = isTrial;
        this.iconUrl = iconUrl;
        this.title = title;
    }

    protected SkinInfo(Parcel in) {
        this.skinId = in.readLong();
        this.skinPath = in.readString();
        this.isDark = in.readBoolean();
        this.isTrial = in.readBoolean();
        this.iconUrl = in.readString();
        this.title = in.readString();
    }

    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(this.skinId);
        dest.writeString(this.skinPath);
        dest.writeBoolean(this.isDark);
        dest.writeBoolean(this.isTrial);
        dest.writeString(this.iconUrl);
        dest.writeString(this.title);
    }

    public int describeContents() {
        return 0;
    }

    public long getSkinId() {
        return this.skinId;
    }

    public void setSkinId(long skinId) {
        this.skinId = skinId;
    }

    public String getSkinPath() {
        return this.skinPath;
    }

    public void setSkinPath(String skinPath) {
        this.skinPath = skinPath;
    }

    public boolean isDark() {
        return this.isDark;
    }

    public void setDark(boolean dark) {
        this.isDark = dark;
    }

    public boolean isTrial() {
        return this.isTrial;
    }

    public void setTrial(boolean trial) {
        this.isTrial = trial;
    }

    public String getIconUrl() {
        return this.iconUrl;
    }

    public void setIconUrl(String iconUrl) {
        this.iconUrl = iconUrl;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String toString() {
        return "SkinInfo{ skinId=" + this.skinId + " skinPath=" + this.skinPath + " isDark=" + this.isDark + " isTrial=" + this.isTrial + " iconUrl=" + this.iconUrl + " title=" + this.title + " }";
    }
}
